<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->headBase() ?>
	<?php echo $this->headMeta() ?>
	<?php echo $this->headTitle() ?>
	<?php echo $this->headLink() ?>
	<script type="text/javascript" src="../WSB/library/WSB/Js/httpRequest.js"></script>
	<?php echo $this->headStyle() ?>
	<link rel="stylesheet" type="text/css" href="../WSB/design/default/skin/default/css/style.css" />
	<link rel="stylesheet" type="text/css" href="../WSB/design/default/skin/default/css/menu.css" />
	<?php echo $this->headScript() ?>
</head>
<body class="yui-skin-sam tundra">
	<div id="layout-top" style="background-color:#990000">
		<div id="layout-logo" style="height:45px;background-image:none !important"><div style="font-size:21px;color:white;font-weight:normal;padding:10px 0 0 10px">Sherpa Outdoor Shop</div></div>
		<div id="layout-logout"><?php echo $this->translate('loggedInAs') ?> <?php echo $this->layout()->auth_status ?><span>|</span><a href="auth/logout/">Log Out</a></div>
	</div>
	<div id="layout-menu">
	  <ul>
	    <li><a href="sherpa/">&Uuml;bersicht</a></li>
	    <li><a href="sherpa/orders">Verk&auml;ufe</a>
	      <ul>
	        <li><a href="sherpa/orders">Bestellungen</a></li>
	        <li><a href="sherpa/reports">Reports</a></li>
	      </ul>
	    </li>
	    <li><a href="sherpa/">Module</a>
	      <ul>
	        <li><a href="sherpa/highlights">Highlights</a></li>
	        <li><a href="sherpa/stores">Stores</a></li>
	      </ul>
	    </li>
	    <li><a href="cms/container/edit/">CMS</a></li>
	  </ul>
	  <div style="clear:both"></div>
	</div>
	<table id="layout-table">
		<tr>
			<?php if($this->layout()->left): ?>
			<td id="layout-table-left" style="vertical-align:top"><div id="layout-left"><?php echo $this->layout()->left ?></div></td>
			<?php endif; ?>
			<td style="vertical-align:top">
				<div id="layout-center">
					<div id="layout-messages"><?php echo $this->layout()->messages ?></div>
					<?php echo $this->layout()->content ?><?php echo $this->layout()->debug ?>
				</div>
			</td>
		</tr>
	</table>
	<div id="dialog"></div>
	<script type="text/javascript">
		function wsbYesNoDialog(url,id) {
			YAHOO.namespace("yesNoDialog");
			var handleYes = function() {
				window.location = url;
				this.hide();
			};
			var handleNo = function() {
				this.hide();
			};
			YAHOO.yesNoDialog = new YAHOO.widget.SimpleDialog("simpledialog1",
				 { width: "300px",
				   fixedcenter: true,
				   visible: false,
				   draggable: false,
				   zIndex:1000,
				   close: true,
				   modal: true,
				   text: "Wollen Sie den Datensatz mit der ID " + id + " wirklich l&ouml;schen?",
				   //icon: YAHOO.widget.SimpleDialog.ICON_HELP,
				   constraintoviewport: true,
				   buttons: [ { text:"<?php echo $this->translate('yes') ?>", handler:handleYes, isDefault:true },
							  { text:"<?php echo $this->translate('no') ?>",  handler:handleNo } ]
				 } );
			YAHOO.yesNoDialog.setHeader("<?php echo $this->translate('yesNoDialogHeader') ?>");
			YAHOO.yesNoDialog.render("dialog");
			YAHOO.yesNoDialog.show();
		}
	</script>
	<?php echo $this->inlineScript() ?>
</body>
</html>